package com.mall.sun.exception;

import jdk.nashorn.internal.objects.annotations.Getter;
import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor

public enum Errors {
    UserName_Exists("用户名存在",1001),
    VertifyCode_Error("验证码错误",1002),
    UserName_Password_Error("用户名或者密码错误",1003),
    Image_Error("图片识别出错",1004),
    Image_CanNot_Identify("图片无法识别",1005),
    Update_Supplier_Error("更新供应商失败",1006),
    Update_Agent_Error("更新代理商失败",1006)
    ;

    String msg;
    Integer code;

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
